package com.sftz.modules.minapp.pay.enums;

import com.uxuexi.core.common.enums.IEnum;

/**
 * 支付平台的支付结果
 * @author 朱晓川
 *
 */
public enum PayStatusEnum implements IEnum {
	//SUCCESS(1, "支付成功"), ERROR(2, "支付失败");
	TOBEPAID(1, "待支付"), INPAYMENT(2, "支付中"), SUCCESS(3, "支付成功"), ERROR(4, "支付失败"), COMPLETE(5, "支付完成");
	private int key;
	private String value;

	private PayStatusEnum(final int key, final String value) {
		this.value = value;
		this.key = key;
	}

	@Override
	public String key() {
		return String.valueOf(key);
	}

	@Override
	public String value() {
		return value;
	}

	public int intKey() {
		return key;
	}
}
